package com.sos.util;


import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;

/***
 * 对话框工具类
 * **/

public class DialogUtil {
	
	public static Dialog showProgressDialog(Context context, String title, String msg, boolean cancelable){
		ProgressDialog dialog = new ProgressDialog(context);
        dialog.setTitle(title);
        dialog.setMessage(msg);
        dialog.setIndeterminate(true);
        dialog.setCancelable(cancelable);
       
        return dialog;
	}
	
	public static Dialog showProgressDialog(Context context, String msg, boolean cancelable){
		ProgressDialog dialog = new ProgressDialog(context);
        dialog.setMessage(msg);
        dialog.setIndeterminate(true);
        dialog.setCancelable(cancelable);
        return dialog;
	}
	
	
	/**
	 * 退出软件对话框
	 * @param activity
	 */
	 
	
}
